#ifndef CWIN_H
#define CWIN_H

#include <windows.h>
#define DIRECTINPUT_VERSION  0x0800

class CWin
{
protected:
	static HINSTANCE m_hInstance;
	HWND   m_hWnd;
	HICON  m_hIcon;
	HMENU  m_hMenu;
	HACCEL m_hAccelTable;
	HBRUSH m_hbrWindowColor;
	
	DWORD m_PosX;
	DWORD m_PosY;
	DWORD m_dwWindowStyle;
	DWORD m_dwExWindowStyle;
	DWORD m_dwCreationFlags;
	DWORD m_dwCreationHeight;
	DWORD m_dwCreationWidth;
	
	TCHAR * m_strWindowTitle;
	
public:
	CWin();
	HRESULT Create();
	int Run();
	virtual ~CWin();
	virtual LRESULT MsgProc(HWND, UINT, WPARAM, LPARAM);
	virtual HRESULT GameInit()=0;
	virtual HRESULT GameLoop()=0;
};

#endif
